package com.aaa.cs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (ViolationRecord)实体类
 *
 * @author makejava
 * @since 2020-11-19 09:33:12
 */
public class ViolationRecord implements Serializable {
    private static final long serialVersionUID = 945043022614098160L;
    /**
     * 违章记录表
     */
    private Integer id;
    /**
     * 车牌号
     */
    private Integer carNo;
    /**
     * 日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")//处理接收参数
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")//返回实体，处理成JSON所遵循的规则
    private Date violationDate;
    /**
     * 违章时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")//处理接收参数
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")//返回实体，处理成JSON所遵循的规则
    private Date violationTime;
    /**
     * 内容
     */
    private String content;
    /**
     * 地区
     */

    private String region;
    /**
     * 处罚结果
     */
    private String punishResult;
    /**
     * 驾驶员
     */
    private String driver;
    /**
     * 处理结果
     */
    private String handlerResult;
    /**
     * 增加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")//处理接收参数
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//处理返回参数
    private Date addtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCarNo() {
        return carNo;
    }

    public void setCarNo(Integer carNo) {
        this.carNo = carNo;
    }

    public Date getViolationDate() {
        return violationDate;
    }

    public void setViolationDate(Date violationDate) {
        this.violationDate = violationDate;
    }

    public Date getViolationTime() {
        return violationTime;
    }

    public void setViolationTime(Date violationTime) {
        this.violationTime = violationTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getPunishResult() {
        return punishResult;
    }

    public void setPunishResult(String punishResult) {
        this.punishResult = punishResult;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getHandlerResult() {
        return handlerResult;
    }

    public void setHandlerResult(String handlerResult) {
        this.handlerResult = handlerResult;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

}